package com.jihu.design.creatation.factory.factorymethod;

import com.jihu.design.creatation.factory.factorymethod.AbstractCar;

/**
 * @author jihu
 * @date 2021/9/14
 */
public class MiniCar extends AbstractCar {

    public MiniCar(){
        this.engine = "四缸水平对置发动机";
    }

    @Override
    public void run() {
        System.out.println(engine+"--》嘟嘟嘟......");
    }
}
